package com.stars.entity.dto.pas;

import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.stars.common.annotation.Dict;
import com.stars.common.base.dto.BaseAppDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author DJ
 * @version V1.0
 * @Title: 订单明细表DTO
 * @date 2019-11-11
 */
@Data
@ExcelTarget("20")
public class PasOrderDetailsDTO extends BaseAppDto {

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID", name = "orderId")
    private String orderId;
    /**
     * 产品ID
     */
    @ApiModelProperty(value = "产品ID", name = "productId")
    private String productId;
    /**
     * 数量
     */
    @ApiModelProperty(value = "数量", name = "number")
    private Long number;
    /**
     * 单价（元）
     */
    @ApiModelProperty(value = "单价（元）", name = "price")
    private Double price;
    /**
     * 折扣
     */
    @ApiModelProperty(value = "折扣", name = "discount")
    private Double discount;
    /**
     * 折扣价（元）
     */
    @ApiModelProperty(value = "折扣价（元）", name = "discountPrice")
    private Double discountPrice;
    /**
     * 总价
     */
    @ApiModelProperty(value = "总价", name = "sumPrice")
    private Double sumPrice;
    /**
     * 完成数量
     */
    @ApiModelProperty(value = "完成数量", name = "doneNumber")
    private Long doneNumber;
    /**
     * 状态(完成，未完成)
     */
    @ApiModelProperty(value = "状态", name = "status")
    private Integer status;
    /**
     * 物料名称
     */
    @ApiModelProperty(value = "物料名称", name = "productName")
    @Dict(dictTable = "pas_product", dictCode = "id", dictName = "product_name", dictSource = "product_id")
    private String productName;
    /**
     * 物料规格
     */
    @ApiModelProperty(value = "物料规格", name = "productGg")
    @Dict(dictTable = "pas_product", dictCode = "id", dictName = "物料规格", dictSource = "product_id")
    private String productGg;


    @Dict(dictTable = "pas_product", dictCode = "id", dictName = "product_ph", dictSource = "product_id")
    @ApiModelProperty(value = "牌号", name = "productPh")
    private String productPh;
}